{* Admin Pages Layout New admin pages must extend this layout and define a {block name=content}{/block} section where the content of each page is defined. This layout is loaded by default when using the AdminLayoutHttpControllerResponse class and the following variables are already prefilled: - $_SESSION - $base_url - $environment - $suffix - $template_dir - $page_title - $language_code - $shop_version - $pageToken - $cache_token - $translations - $fontawesome_fallback - $menu_entries - $menu_visibility - $shop_key_state - $languages - $message_stack - $content - $dynamic_script_assets - $dynamic_style_assets - $recent_search_area - $debug_bar_header_content - $debug_bar_body_content - $admin_languages There are two optional blocks that can be filled by the child-templates of the layout: - head: Include styles and meta info in the bottom part of the element. - bottom: Include scripts and other content in the bottom of the
element. In order to avoid name collisions with your own data the page-specific data are grouped in the $content variable. *} {block name="admin_layouts_main_layout"}
{block name="admin_layouts_main_layout_head"} {* Partial template injection in bottom-head. *} {include file="get_usermod:layouts/main/partial/layout_styles.html"} {include file="get_usermod:layouts/main/partial/initial_styling.html"} {include file="get_usermod:layouts/main/partial/fontawesome_fallback.html"} {include file="get_usermod:layouts/main/partial/debug_bar_header.html"} {* Dynamic HTML injection. *} {block name="head"}{/block} {* Dynamic Style Assets *} {$dynamic_style_assets nofilter} {/block} {block name="admin_layouts_main_layout_body"}
{include file="get_usermod:layouts/main/header/header.html"}
{include file="get_usermod:layouts/main/content/content_header.html"} {include file="get_usermod:layouts/main/content/message_stack.html"}
{block name="content"}{/block}
{block name="admin_layouts_main_footer"}
{/block}
{* Partial template injection in bottom-body. *} {include file="get_usermod:layouts/main/partial/jse_configuration.html"} {include file="get_usermod:layouts/main/partial/pace_configuration.html"} {include file="get_usermod:layouts/main/partial/layout_scripts.html"} {include file="get_usermod:layouts/main/partial/debug_bar_body.html"} {* Dynamic
HTML injection. *} {block name="bottom"}{/block} {* Dynamic Script Assets *} {$dynamic_script_assets nofilter}
{/block}
{/block}